package com.hjm.project.accounts.accounts.mapper;

import java.util.List;
import java.util.Map;

import com.hjm.project.accounts.accounts.domain.Accounts;

/**
 * 商户结算账户Mapper接口
 *
 * @author LOVE
 * @date 2020-11-19
 */
public interface AccountsMapper
{
    /**
     * 查询商户结算账户
     *
     * @param id 商户结算账户ID
     * @return 商户结算账户
     */
    public Accounts selectAccountsById(Long id);

    public Accounts selectAccounts(Accounts accounts);

    /**
     * 查询商户结算账户列表
     *
     * @param accounts 商户结算账户
     * @return 商户结算账户集合
     */
    public List<Accounts> selectAccountsList(Accounts accounts);

    /**
     * 新增商户结算账户
     *
     * @param accounts 商户结算账户
     * @return 结果
     */
    public int insertAccounts(Accounts accounts);

    /**
     * 修改商户结算账户
     *
     * @param accounts 商户结算账户
     * @return 结果
     */
    public int updateAccounts(Accounts accounts);

    /**
     * 删除商户结算账户
     *
     * @param daMarker 商户结算账户ID
     * @return 结果
     */
    public int deleteAccountsById(Long daMarker);

    public int deleteAccountsInfo(Long agentNum);


    /**
     * 批量删除商户结算账户
     *
     * @param daMarkers 需要删除的数据ID
     * @return 结果
     */
    public int deleteAccountsByIds(String[] daMarkers);



    /**
     * 新增结算账户
     *
     * @return 结果
     */
    public int saveAccount(Map map);

    public int updateAccount(Map map);

    public int updateAccountNoN(Map map);


    /**
     * 根据对象编号修改账户 对象类型选填
     *
     * @param accounts
     * @return
     */
    public int updateAccountsBySeqId(Accounts accounts);


    public int saveMerApply(Map map);

    public int updateMerApply(Map map);

    Map<String, Object> selectAccountsMapBySeqId(String seqId);
}
